<?php

class Publicacao extends ModelFather {
    public $id, $nome, $dataPublicacao;
    
    function __construct($host, $db, $port, $user, $password) {
        parent::__construct($host, $db, $port, $user, $password);
        $this->belongsTo = array(
            'Categoria' => array(
                'class' => 'Categoria',
                'fkey' => 'categoria'
            ),
            'Autor' => array(
                'class' => 'Autor',
                'fkey' => 'autor'
            )
        );
    }
    
    
}

?>
